package com.aiti.lulian.entity;



import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("card_business_contract")
public class CardBusinessContract {
    @TableId(value = "base_id", type = IdType.ASSIGN_UUID)
    private String baseId;
    private String baseName;
    private String customerId;
    private String communicateId;
    private BigDecimal totalPrice;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date signDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    private String enterpriseId;
    private String status;
    private String receivePaymentFlag;
    private String renewFlag;

    private String baseCreateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "base_create_time", fill = FieldFill.INSERT)
    private Date baseCreateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "base_update_time", fill = FieldFill.UPDATE)
    private Date baseUpdateTime;
    private String baseUpdateBy;
    private String baseCreateName;
    private String deptId;
    private String directorId;
    private String directorName;

    private BigDecimal receivedAmount;
    private BigDecimal outstandingAmount;
    private String type;
    private String paymentMethod;
    private String ourSigner;
    private String clientSigner;
    private String attachment;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date nextFollowUpTime;
    private String remark;
    private String deptName;
    private Integer isDelete;
}